import Layout from '@/views/layout/Layout';

const _import = require('@/router/_import_' + process.env.NODE_ENV);

export default [{
  path: '/cert',
  component: Layout,
  name: '产品管理',
  icon: 'setting',
  authority: 'cert',
  children: [{
    path: 'quest',
    icon: 'fa-user',
    component: _import('cert/quest/index'),
    name: '证书查询',
    authority: 'certQuest'
  }, {
    path: 'list',
    icon: 'fa-user',
    component: _import('cert/list/index'),
    name: '证书管理',
    authority: 'certList'
  }, {
    path: 'list/add',
    icon: 'fa-user',
    component: _import('cert/list/add'),
    name: '新增证书',
    authority: 'certList:btn_add'
  }, {
    path: 'list/edit',
    icon: 'fa-user',
    component: _import('cert/list/edit'),
    name: '编辑证书',
    authority: 'certList:btn_add'
  }, {
    path: 'list/detail',
    icon: 'fa-user',
    component: _import('cert/list/detail'),
    name: '证书详情',
    authority: 'certList:btn_add'
  }, {
    path: 'plan',
    icon: 'fa-user',
    component: _import('cert/plan/index'),
    name: '认证申请',
    authority: 'certPlan'
  }, {
    path: 'plan/add',
    icon: 'fa-user',
    component: _import('cert/plan/add'),
    name: '新增认证申请',
    authority: 'certPlan:btn_add'
  }, {
    path: 'plan/edit',
    icon: 'fa-user',
    component: _import('cert/plan/edit'),
    name: '编辑认证申请',
    authority: 'certPlan:btn_add'
  }, {
    path: 'plan/detail',
    icon: 'fa-user',
    component: _import('cert/plan/detail'),
    name: '查看认证申请',
    authority: 'certPlan:btn_add'
  }, {
    path: 'warning',
    icon: 'fa-user',
    component: _import('cert/warning/index'),
    name: '认证预警',
    authority: 'certWarning'
  }, {
    path: 'config',
    icon: 'fa-user',
    component: _import('cert/config/index'),
    name: '认证配置管理',
    authority: 'certConfig'
  }]
}]
